import { createApp } from 'vue';
import App from './App.vue';

// 导入ele-plus
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

// 导入全局样式
import './style/index.scss';

// 导入路由
import router from './router';

// // 引入全局组件注册方式
// import gloablComponent from './components/index.js';

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
// 安装element-plus插件
app.use(ElementPlus);

app.use(router)
// app.use(gloablComponent);


app.mount('#app');
